<?php

namespace App\Http\Controllers\PC\Order;

use Illuminate\Http\Request;
use Session,Config;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Http\Service\Product\ProductService;

class IndexController extends Controller
{
    public function index(Request $request)
    {
        $token = Session::get(Config::get('custom.setting.MEMBER_TOKEN'));

        $param = $request->except('_token');

        $where = [
            'token' => $token,
            'page_no' => $param['page']?:0,
            'page_size' => $param['limit']?:10,
        ];



        $ret = new ProductService();
        $arr =  $ret->Order($where);

        return $arr;
    }
}
